package com.example.SpringBoot_demo.mapper;

import com.example.SpringBoot_demo.bean.Notice;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.List;

/**
 * Creat by wsn on 2021/7/21 10:43
 */
@Mapper
public interface NoticeMapper {
    List<Notice> GetAllnotice(int startRow, int pageSize);
    void noticeinsert(String adminid, String adminname, String noticecontents, Timestamp noticedate);
//    Notice noticeinsert(Notice notice);

    int delete(int noticeid);

    void update(Notice notice);

    Notice findNoticeById(int noticeid);

    void freshAllNoticeID1(Notice notice);
    void freshAllNoticeID2(Notice notice);

    int total(int pageSize);

}
